//
//  ZXAvoidCrashReport.h
//  ZXAvoidCrash
//
//  Created by 朱新明 on 2023/3/14.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger,AvoidCrashHandleType){

    AvoidCrashHandleType_doNothing=0,//不做处理，包括返回自己
    AvoidCrashHandleType_returnNil=1,
    AvoidCrashHandleType_returnNSNotFound=2,
    AvoidCrashHandleType_unknown=3,

};


@interface ZXAvoidCrashReport : NSObject


+ (void)crashReportWithException:(NSException *)exception;

/// 崩溃上报
/// @param exception 异常对象
/// @param type 处理类型
+ (void)crashReportWithException:(NSException *)exception avoidCrashHandleType:(AvoidCrashHandleType)type;

@end

NS_ASSUME_NONNULL_END
